g = open("a.txt","a+")
b = ["\n我是最后一行"]
g.writelines(b)
g.seek(2)
for line in g:
    print(line)
g.close()